.class Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;
.super Ljava/lang/Object;
.source "TrackDialogs.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->chooseAction(Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;Llt/noframe/gpsfarmguide/views/FragmentTracksList;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

.field final synthetic val$callback:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;

.field final synthetic val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

.field final synthetic val$fragment:Llt/noframe/gpsfarmguide/views/FragmentTracksList;

.field final synthetic val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/analytics/FireAnalytics;Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Llt/noframe/gpsfarmguide/views/FragmentTracksList;)V
    .locals 0

    .line 321
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$callback:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;

    iput-object p4, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    iput-object p5, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fragment:Llt/noframe/gpsfarmguide/views/FragmentTracksList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    const/4 p1, 0x1

    if-eqz p2, :cond_5

    const/4 v0, 0x0

    if-eq p2, p1, :cond_4

    const/4 v1, 0x2

    if-eq p2, v1, :cond_2

    const/4 p1, 0x3

    if-eq p2, p1, :cond_1

    const/4 p1, 0x4

    if-eq p2, p1, :cond_0

    goto/16 :goto_0

    .line 364
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendTrackDelete()V

    .line 365
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

    new-instance p2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13$2;

    invoke-direct {p2, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13$2;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;)V

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->deleteTrack(Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    .line 359
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendTrackTitleEdit()V

    .line 360
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fragment:Llt/noframe/gpsfarmguide/views/FragmentTracksList;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-virtual {p1, p2, v0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->editTrackName(Llt/noframe/gpsfarmguide/views/FragmentTracksList;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    goto :goto_0

    .line 337
    :cond_2
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendTrackShareBtnClick()V

    .line 338
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"

    invoke-static {p2, v1}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I

    move-result p2

    if-nez p2, :cond_3

    .line 339
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-static {p1, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->access$000(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    goto :goto_0

    .line 341
    :cond_3
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object p2

    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13$1;

    invoke-direct {v2, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13$1;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;)V

    invoke-virtual {p2, v2}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->setOnPermissionResult(Llt/noframe/gpsfarmguide/PermissionsCallbacker$OnPermissionResult;)V

    .line 353
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getPermissionsCallbacker()Llt/noframe/gpsfarmguide/PermissionsCallbacker;

    move-result-object p2

    new-array p1, p1, [Ljava/lang/String;

    aput-object v1, p1, v0

    const/16 v0, 0x630

    invoke-virtual {p2, p1, v0}, Llt/noframe/gpsfarmguide/PermissionsCallbacker;->onRequestPermission([Ljava/lang/String;I)V

    goto :goto_0

    .line 332
    :cond_4
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendTrackSelect()V

    .line 333
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$callback:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;

    if-eqz p1, :cond_6

    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-interface {p1, v0, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;->actionChosen(ILlt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    goto :goto_0

    .line 327
    :cond_5
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendTrackShowOnMap()V

    .line 328
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$callback:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;

    if-eqz p2, :cond_6

    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-interface {p2, p1, v0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;->actionChosen(ILlt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    :cond_6
    :goto_0
    return-void
.end method
